


import request from '@/axios';
import { baseUrl } from '@/config/env';

// 用户管理-用户列表
export const userList = (data) => request({
    url: baseUrl + '/userCenter/userList',
    method: 'post',
    data
})
// 用户管理-用户列表-充值
export const rechargePointsBalance = (data) => request({
    url: baseUrl + '/userCenter/rechargePointsBalance',
    method: 'post',
    data
})
// 用户管理-积分余额
export const rechargeRecord = (data) => request({
    url: baseUrl + '/userCenter/rechargeRecord',
    method: 'post',
    data
})

// 获取用户详情
export const getData = (id) => request({
    url: baseUrl + `/userCenter/userById/${id}`,
    method: 'get'
});
// 用户中心-收货地址
export const getAddress = (id) => request({
    url: baseUrl + `/userCenter/rechargeRecord/address/${id}`,
    method: 'get'
});